<?php
/**
  * 留言模型
  */
class MessageModel extends CommonModel
{
   	// 验证设置
   	protected $_validate	 =	 array(
		array('reply_content','require','内容必填！',self::MODEL_BOTH)
		);

   	protected $_auto=array(
		array('reply_time','time',self::MODEL_BOTH,'function'),
		array('reply_name','callbackReplyName',self::MODEL_BOTH,'callback')
		);

	protected function callbackReplyName()
	{
	  return $_SESSION['truename'];
	}  

}
?>